﻿using System;

namespace DesignPattern.com.state {
    public class Context {
        private State state;

        public void request(int val){
            Console.WriteLine("context-request="+val);
            state.Handle(val);
        }

        public void setState(State state){
            Console.WriteLine("context-setState="+state);
            this.state = state;
        }
    }
}